﻿@{
    ViewBag.Title = "主页";
}
@model IEnumerable<Orchard.Entity.Web_Logs>
@using (Html.BeginForm())
{
    <p>
        @Html.ActionLink("递增", "Index", new { sort = 1 })｜@Html.ActionLink("递减", "Index", new { sort = 0 })
        <hr />
        从<span>@Html.TextBox("startrec", 1)</span>条记录，拿<span>@Html.TextBox("num", 5)</span>条记录
        <button>
            查询</button>
        @if (Model != null && Model.Count() > 0)
        {
            foreach (var i in Model)
            { 
            <h3>
                ID：@i.LogID,@i.Info,<span>@Html.ActionLink("编辑", "Edit", new { id = @i.LogID })</span></h3>
            }
        }
    </p>
}
@{
    var web_ExceptionLog = ViewBag.Log as List<Orchard.Entity.Web_ExceptionLog>;
}
@if (web_ExceptionLog != null && web_ExceptionLog.Count() > 0)
{
    foreach (var i in web_ExceptionLog)
    { 
    <h3>
        ID：@i.ExceptionID,@i.FullInfo</h3>
    }
}
